﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Reconciliation.Data
{
    public partial class Role
    {
        public static Domain.Role MapDataToDomain(Data.Role dataRole)
        {
            Domain.Role domainRole = new Reconciliation.Domain.Role();
            domainRole.RoleCode = dataRole.RoleCode;
            domainRole.RoleID = dataRole.RoleID;
            if (dataRole.Permission != null)
                domainRole.Permission = Permission.MapDataToDomain(dataRole.Permission);
            return domainRole;
        }
    }
}
